<template>
  <div>
    <router-view v-if="isRouterAlive"/>
    <com-foot></com-foot>
  </div>
</template>


<script>
    import comFoot from '../../components/comfoot'

    export default {
        name: 'Main',
        components: {comFoot},
        data() {
            return {
                isRouterAlive: true
            }
        },
        provide() {
            return {
                reload: this.reload
            }
        },
        methods: {
            reload() {
                this.isRouterAlive = false
                this.$nextTick(function () {
                    this.isRouterAlive = true
                })
            }

        },
        mounted() {
// localStorage.removeItem('TOKEN_KEY')
        },
    }
</script>

<style>
</style>
